From a96d0b38c6e1ed9a35ed0c94077257afbd6bd2d7 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 15 Sep 2004 18:37:45 +0000 Subject: [PATCH] Remove bogus code that tried to do what the X11 backend does in its 2004-09-15 Tor Lillqvist * gdk/win32/gdkwindow-win32.c (gdk_window_get_frame_extents): Remove bogus code that tried to do what the X11 backend does in its version of this function. There are no "frame windows" (for toplevel window decoration) on Windows. The desktop ("root") window is not the parent of a toplevel window. (#152481) --- ChangeLog | 8 ++++++++ ChangeLog.pre-2-10 | 8 ++++++++ ChangeLog.pre-2-6 | 8 ++++++++ ChangeLog.pre-2-8 | 8 ++++++++ gdk/win32/gdkwindow-win32.c | 8 -------- 5 files changed, 32 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1ea1481c5f..3f0603ee0d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2004-09-15 Tor Lillqvist + + * gdk/win32/gdkwindow-win32.c (gdk_window_get_frame_extents): + Remove bogus code that tried to do what the X11 backend does in + its version of this function. There are no "frame windows" (for + toplevel window decoration) on Windows. The desktop ("root") + window is not the parent of a toplevel window. (#152481) + 2004-09-15 Matthias Clasen * NEWS: Update. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 1ea1481c5f..3f0603ee0d 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,11 @@ +2004-09-15 Tor Lillqvist + + * gdk/win32/gdkwindow-win32.c (gdk_window_get_frame_extents): + Remove bogus code that tried to do what the X11 backend does in + its version of this function. There are no "frame windows" (for + toplevel window decoration) on Windows. The desktop ("root") + window is not the parent of a toplevel window. (#152481) + 2004-09-15 Matthias Clasen * NEWS: Update. diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 1ea1481c5f..3f0603ee0d 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,11 @@ +2004-09-15 Tor Lillqvist + + * gdk/win32/gdkwindow-win32.c (gdk_window_get_frame_extents): + Remove bogus code that tried to do what the X11 backend does in + its version of this function. There are no "frame windows" (for + toplevel window decoration) on Windows. The desktop ("root") + window is not the parent of a toplevel window. (#152481) + 2004-09-15 Matthias Clasen * NEWS: Update. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 1ea1481c5f..3f0603ee0d 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,11 @@ +2004-09-15 Tor Lillqvist + + * gdk/win32/gdkwindow-win32.c (gdk_window_get_frame_extents): + Remove bogus code that tried to do what the X11 backend does in + its version of this function. There are no "frame windows" (for + toplevel window decoration) on Windows. The desktop ("root") + window is not the parent of a toplevel window. (#152481) + 2004-09-15 Matthias Clasen * NEWS: Update. diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c index 5fe64b7e9f..8d5826d833 100644 --- a/gdk/win32/gdkwindow-win32.c +++ b/gdk/win32/gdkwindow-win32.c @@ -2021,14 +2021,6 @@ gdk_window_get_frame_extents (GdkWindow *window, private = (GdkWindowObject*) private->parent; hwnd = GDK_WINDOW_HWND (window); - - /* find the frame window */ - while (HWND_DESKTOP != GetParent (hwnd)) - { - hwnd = GetParent (hwnd); - g_return_if_fail (NULL != hwnd); - } - API_CALL (GetWindowRect, (hwnd, &r)); rect->x = r.left + _gdk_offset_x; -- 2.30.2